package com.donlim.dev.exception;

import com.donlim.dev.entity.SysUser;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by 星 on 2020/11/4
 */
@Getter
@Setter
public class SysUserException extends Exception{

    private Integer code;
    private String message;

    public SysUserException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public SysUserException(String message, Integer code, String message1) {
        super(message);
        this.code = code;
        this.message = message1;
    }

    public SysUserException(String message, Throwable cause, Integer code, String message1) {
        super(message, cause);
        this.code = code;
        this.message = message1;
    }

    public SysUserException(Throwable cause, Integer code, String message) {
        super(cause);
        this.code = code;
        this.message = message;
    }

    public SysUserException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer code, String message1) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.message = message1;
    }
}
